|
DX11 SET BUFFER BOOLEAN
Sets a boolean value in a buffer at the specified position.
The four-argument version is only used by structured buffers; array and byte address buffers will ignore the offsetInElement argument.
Note that data can only be read as 32-bit values from your shaders; as such this function will set 4 bytes in the buffer and not just one as the name would suggest.
A bool declared in your shaders does in fact represent 4 bytes too so take this into account when indexing into a structured buffer.
DX11 SET BUFFER BOOLEAN buffer, offset, [offsetInElement], value
buffer Dword The buffer to write the boolean value to.
offset Dword The offset within the buffer to write the value to. If called for a structured buffer or an array buffer, this corresponds to the element id to set. For a byte address buffer it is the offset in bytes from the beginning of the buffer. Note that byte address buffers can only be read from at 4-byte aligned addresses by the GPU.
[Optional] offsetInElement Dword The offset within the current struct of the given element. Only relevant for structured buffers to allow writing struct entries with multiple data types. Ignored for all other buffer types.
value Boolean The boolean value to write to the given position within the specified buffer.
This function does not return a value.
DIRECTCOMPUTE Functions Menu
DX11 Function Categories
|